<%--报废使用人确认列表--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<%@taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:forEach items="${bfsyrqrList }" var="u">
	<tr>
		<td><input type="checkbox" name="bfclqrId" value="${u.id }"></td>
		<td>${u.wuZi.ziChanBH }</td>
		<td>${u.wuZi.wuZiMC }</td>
		<td>${u.wuZi.pinPai }</td>
		<td>${u.wuZi.guiGeXH }</td>
		<td>${u.wuZi.chanPinXLH }</td>
		<td>${u.chuLiFS }</td>
		<td>${u.huiShouJE }</td>
		<td>
			<a href="${ctx }/wuzi/wuZiDetail.do?id=${u.wuZi.id}" target="_blank" class="btn default btn-xs green-stripe">物资详情</a>&nbsp;&nbsp;
			<a href="${ctx }/wuzi/baoFeiDetail.do?id=${u.id}" target="_blank" class="btn default btn-xs green-stripe">流程详情</a>
		</td>
		<td>
			<a href="javascript:bfsyrqrSave('${u.id}')" class="btn default btn-xs green-stripe">确认</a>
		</td>
	</tr>
</c:forEach>
<script>
    function bfsyrqrSave(id){
        $.ajax({
            type:"POST",
            url:"${ctx}/wuzi/baofeidan/bfsyrqrSave.do",
            data:{
                "id":id
            },
            dataType:"json",
            async:false,
            success:function(data){
                if(data.result=="success"){
                    alert("确认成功！");
                    $.ajax({
                        type:"POST",
                        url:"${ctx}/wuzi/baofeidan/bfsyrqrList.do",
                        dataType:"html",
                        success:function(data){
                            $('#bfclqr').html(data);
                        }
                    });
                }
            }
        });
    }
</script>